from distutils.core import setup
import pygame
import py2exe
import os

# Required for getting two specific windows dlls to ensure proper execution
origIsSystemDLL = py2exe.build_exe.isSystemDLL

def isSystemDLL(pathname):
        if os.path.basename(pathname).lower() in ("libogg-0.dll", "dsdl_ttf.dll"):
                return 0
        return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL

# highly specific setup to ensure pygame usage
setup(windows=['main.py'], options = {
    "py2exe": {
            "optimize": 2,
            "compressed": 1,
            "bundle_files": 2
                }
    }, zipfile = None,
)